<?php
include("configuration.php");
include("function.php");
//Deklarasi variable
$username=$_POST['username'];
$password=$_POST['password'];
$sql_user="select * from pengguna where username='$username' and password='$password'";
$query_user=dbQuery($sql_user)or die(mysql_error());
$baris_user=dbRows($query_user);
//echo $baris_user;
	if($baris_user!=0){
		$_SESSION['username']=$username;
		$_SESSION['password']=$password;
		$session_id=session_id();
		header("Location:../administrator/index_admin.php?username=$username&id=$session_id");
	}else{
			header("Location:../administrator/test.html");		
	}
?>